with open('sample4_1.txt', 'r', encoding='utf-8') as file:   
    content_read = file.read()  
    print("使用 read() 读取整个文件内容:")  
    print(content_read)  
    print("\n")  
      
    file.seek(0)  
        
    content_readline = file.readline()  
    print("使用 readline() 读取第一行内容:")  
    print(content_readline, end='') 
    print("\n")  
  
    file.seek(0)  
      
    content_readlines = file.readlines()  
    print("使用 readlines() 读取所有行内容（作为列表）:")  
    for line in content_readlines:  
        print(line, end='')  
    print("\n")  